package io.wdb.modules.activity.wx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.wdb.modules.activity.wx.dao.MarketUserPrizeDao;
import io.wdb.modules.activity.wx.entity.MarketUserPrizeEntity;
import io.wdb.modules.activity.wx.service.MarketUserPrizeService;

import java.util.List;
import java.util.Map;



@Service("marketUserPrizeService")
public class MarketUserPrizeServiceImpl implements MarketUserPrizeService {
	@Autowired
	private MarketUserPrizeDao marketUserPrizeDao;
	
	@Override
	public MarketUserPrizeEntity queryObject(Long id){
		return marketUserPrizeDao.queryObject(id);
	}
	
	@Override
	public List<MarketUserPrizeEntity> queryList(Map<String, Object> map){
		return marketUserPrizeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return marketUserPrizeDao.queryTotal(map);
	}
	
	@Override
	public void save(MarketUserPrizeEntity marketUserPrize){
		marketUserPrizeDao.save(marketUserPrize);
	}
	
	@Override
	public void update(MarketUserPrizeEntity marketUserPrize){
		marketUserPrizeDao.update(marketUserPrize);
	}
	
	@Override
	public void delete(Long id){
		marketUserPrizeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		marketUserPrizeDao.deleteBatch(ids);
	}

	@Override
	public List<MarketUserPrizeEntity> getUserPrizeEntitiesByIds(Long[] ids) {
		return marketUserPrizeDao.getUserPrizeEntitiesByIds(ids);
	}

	@Override
	public List<MarketUserPrizeEntity> getUserPrizeEntitiesByUserId(Long user_id) {
		return marketUserPrizeDao.getUserPrizeEntitiesByUserId(user_id);
	}
	
}
